package la.iok.hzsvn.lewin.movie.shopmovie.service;

import la.iok.hzsvn.lewin.movie.core.Token;
import la.iok.hzsvn.lewin.movie.core.model.SimpleUser;
import la.iok.hzsvn.lewin.movie.shopmovie.entity.ShopPlayer;
import la.iok.hzsvn.lewin.movie.shopmovie.model.ShopPlayerVo;
import la.iok.hzsvn.lewin.mybatis.model.PageParam;
import la.iok.hzsvn.lewin.mybatis.model.PageVo;
import la.iok.hzsvn.lewin.mybatis.model.SortParam;
import la.iok.hzsvn.lewin.mybatis.service.BaseService;
import la.iok.hzsvn.share.annotations.NotNull;
import la.iok.hzsvn.share.annotations.Nullable;

public interface ShopPlayerService extends BaseService<ShopPlayer, Long> {
    Long save(@NotNull SimpleUser player, @NotNull Long orgUnitId);

    /*二维码邀请加入店铺*/
    Long save(@NotNull Long id, @NotNull Long orgUnitId);

    PageVo<ShopPlayerVo> page(@NotNull Token token, @NotNull PageParam pageParam, @NotNull SortParam sortParam,
                              @Nullable String phoneNumber, @Nullable String nickname, String text);
}
